	#{extends 'main.html' /}
#{set title:'createIdea View' /}




<script language="javascript" type="text/javascript">
function post1(form){
if(document.getByID("flag")= false){
  alert("ERROR!");

} else {
alert("Idea has been posted");
}("ERROR!");
}
}




</script>


<form action="@{Ideas.postIdeaInTopic()}" method="GET">
	Title: <input type="text" name="title" /> 
	<br>
	
Detail:	<textarea wrap="virtual" 
	name="ideaDetail" rows=3 cols=20 maxlength=100></textarea><br>
	<br>
	
	
<input type="hidden" id="topicId" value=${topicId} />	
    <br>
    
    <input type="submit" value="Post"  onClick = post1(this.form) />

    

    <input type="submit"  value"save as drafttttttt"  />

 </form> 

